From: Marco Trevisan (TreviƱo) Date: Mon, 11 Mar 2019 20:39:29 +0000 (+0000) Subject: magnifier: Use all color channels to paint content texture node X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~871^2^2~10 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=42472510209ec6b350aa58b9653a71fdab05654d;p=gnome-shell.git magnifier: Use all color channels to paint content texture node In order to paint all the color channels of the content texture we need to set the color channels to 255, so instead of doing this manually we can just reuse the static color definition for white. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/issues/1020 --- diff --git a/js/ui/magnifier.js b/js/ui/magnifier.js index 4a21b71e5..3d05615ee 100644 --- a/js/ui/magnifier.js +++ b/js/ui/magnifier.js @@ -65,7 +65,7 @@ var MouseSpriteContent = GObject.registerClass({ if (!this._texture) return; - let color = new Clutter.Color(); + let color = Clutter.Color.get_static(Clutter.StaticColor.WHITE); let textureNode = new Clutter.TextureNode(this._texture, color, Clutter.ScalingFilter.NEAREST,